<?php

    /*
     *
     *  This file is part of ValerieEngine
     *  ValerieEngine is free software: you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation, either version 3 of the License, or
     *  (at your option) any later version.
     *
     *  ValerieEngine is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with ValerieEngine.  If not, see <http://www.gnu.org/licenses/>.
     *
     */

    /**
     * Description of CoreException
     *
     * @author Dutchak Vitaly
     */
    class CoreException extends Exception {

        /**
         * filename where error found
         * @var string
         */
        protected $file;
        /**
         *  line where error is found
         *  @var int
         */
        protected $line;

        /**
         * CoreException constructor
         * @param string $message text of error message
         * @param int $errorLevel error level
         * @param string $errorFile file where error is found
         * @param int $errorLine line where error is found
         */
        public function __construct($message, $errorLevel = 0, $errorFile = '', $errorLine = 0) {
            parent::__construct($message, $errorLevel);
            $this->file = $errorFile;
            $this->line = $errorLine;

        }
       
    }

?>
